import { View } from "../../../../mvc/core/View";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { EventName } from "../../../mvc/EventName";
import { FilterConst } from "../../../../component/gconst/FilterConst";
import { DataEvent } from "../../../events/DataEvent";
import { ObjCreate } from "../../common/ObjCreate";
import { Language } from "../../../../../extend/language/Language";
import { GTextFormat } from "../../../../common/GTextFormat";
import { FontUtil } from "../../../../common/font/FontUtil";
import { ImagesConst } from "../../../resource/ImagesConst";
import { BaseItem } from "../../common/BaseItem";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { MountReinBuyPart } from "../mount/MountReinBuyPart";
import { ECategory } from "../../../../../Message/Public/ECategory";
import { EProp } from "../../../../../Message/Public/EProp";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { HTMLUtil } from "../../../../../com/gengine/utils/HTMLUtil";
import { PublicMessageConfig } from "../../../resource/PublicMessageConfig";
import { GScrollPane } from "../../../../../com/mui/controls/GScrollPane";
import { ScrollPolicy } from "../../../../../fl/controls/ScrollPolicy";
import { MountReinAddAdd } from "../mount/MountReinAddAdd";
import { LoaderHelp } from "../../../../common/display/LoaderHelp";
import { ResFileConst } from "../../../resource/ResFileConst";
import { MsgManager } from "../../../manager/MsgManager";
import { Cache } from "../../../cache/Cache";
import { GameConst } from "../../../../component/gconst/GameConst";
import { PulseSharedObject } from "../../player/PulseSharedObject";
import { Alert } from "../../../../../com/mui/controls/Alert";
import { CheckBoxWin } from "../../common/alertwins/CheckBoxWin";
import { ItemData } from "../../../resource/info/ItemData";
import { MountConfig } from "../../../resource/MountConfig";
import { ItemsUtil } from "../../shortcuts/item/ItemsUtil";
import { ItemConfig } from "../../../resource/ItemConfig";
import { TMountReincarnate } from "../../../../../Message/Db/Tables/TMountReincarnate";
import { GButton } from "../../../../../com/mui/controls/GButton";
import { GCheckBox } from "../../../../../com/mui/controls/GCheckBox";
import { _mountIData } from "../../../../../this/_mountIData";
type int = number;
//class MountReinPanel
    
    export  class MountReinPanel extends View
    {
        constructor()
        {
            super();
            this._materialArr = [];
            this._materials = [];
            this._arrBaseValue = [];
            this._arrBaseValueAdd = [];
            this._addaddTxArr = [];
            this.initView();
            Dispatcher.addEventListener(EventName.mountReinSuccess, this.onmountReinSuccess);
            return;
        }

        /* internal  */updateDrugItem(): void
        {
            this.getDrugCode();
            if (this.getMaterialItemdata()) 
            {
                this._drugItem.itemData = this.getMaterialItemdata();
                if (this._materialEnough) 
                {
                    this._drugItem.filters = null;
                }
                else 
                {
                    this._drugItem.filters = [FilterConst.colorFilter];
                }
                this._drugItem.amount = this._configRein ? this._configRein.amount : 0;
            }
            return;
        }

        /* internal  */onmountReinSuccess(arg1: DataEvent): void
        {
            this.clear();
            return;
        }

        /* internal  */initView(): void
        {
            var loc3=null;
            var loc4=null;
            var loc12=null;
            var loc15=null;
            var loc16=null;
            var loc17=null;
            ObjCreate.createFlowerBg(0, 0, 360, 324, this);
            this._stBmMountReinBg = ObjCreate.createBitmap("", 43, 10, this);
            ObjCreate.createTextField(Language.getString(70182), 57, 10, 70, 20, this, new GTextFormat(FontUtil.songtiName, 12, 15788607, true));
            ObjCreate.createTextField(Language.getString(70183), 250, 10, 70, 20, this, new GTextFormat(FontUtil.songtiName, 12, 15788607, true));
            ObjCreate.createBg(64, 30, 38, 38, this, ImagesConst.PackItemBg);
            this._mountItem = new BaseItem();
            this._mountItem.setSize(32, 32);
            this._mountItem.move(67, 33);
            this.addChild(this._mountItem);
            ObjCreate.createBg(252, 30, 38, 38, this, ImagesConst.PackItemBg);
            this._drugItem = new BaseItem();
            this._drugItem.setSize(32, 32);
            this._drugItem.move(255, 33);
            this.addChild(this._drugItem);
            this._reinBm = ObjCreate.createBitmap("", 160, 28, this);
            ObjCreate.createBg(155, 117, 38, 38, this, ImagesConst.PackItemBg);
            this._previewMountItem = new BaseItem();
            this._previewMountItem.setSize(32, 32);
            this._previewMountItem.move(158, 120);
            this._previewMountItem.isShowToolTip = false;
            this.addChild(this._previewMountItem);
            this._mountNameTx = ObjCreate.createTextField("", 144, 158, 60, 20, this);
            this._mountNameTx.autoSize = flash.text.TextFormatAlign.CENTER;
            this._reinBtn = ObjCreate.createGButton(Language.getString(70184), 141, 182, 65, 26, this, "ButtonSpecial");
            this._reinBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onReinBtnClick);
            ObjCreate.createTextField(Language.getString(70185), 124, 212, 60, 20, this, GlobalStyle.textFormat1);
            this._costTx = ObjCreate.createTextField("0", 185, 212, 44, 20, this, GlobalStyle.textFormat2);
            this._costTx.autoSize = flash.text.TextFormatAlign.CENTER;
            ObjCreate.createBitmap(ImagesConst.Tongqian_small, 225, 215, this);
            ObjCreate.createBg(10, 234, 340, 58, this);
            this._buyPart = new MountReinBuyPart(ECategory._ECategoryProp, EProp._EPropMountReincarnate);
            this._buyPart.x = 15;
            this._buyPart.y = 228;
            this.addChild(this._buyPart);
            this.getDrugCode();
            this.checkBackDrugNum();
            this.buyReinDrug();
            this._useBindCB = ObjCreate.createCheckBox(Language.getString(70186), 224, 241, 121, 20, this);
            this._autoBuyCB = ObjCreate.createCheckBox(Language.getString(70187), 224, 265, 121, 20, this);
            this._useBindCB.selected = true;
            var loc1=GlobalClass.getBitmap(ImagesConst.Fire);
            loc1.x = 43;
            loc1.y = 292;
            this.addChild(loc1);
            var loc2=ObjCreate.createTextField("", 66, 298, 292, 20, this);
            loc2.htmlText = HTMLUtil.addColor(Language.getString(70188), "#ffffff");
            ObjCreate.createFlowerBg(0, 326, 360, 74, this);
            loc3 = ObjCreate.createTextField("", 0, 330, 348, 100, this);
            loc3.multiline = true;
            loc3.wordWrap = true;
            loc3.mouseWheelEnabled = false;
            loc3.htmlText = "<textFormat leading=\'5\'>" + PublicMessageConfig.instance.getMountModuleTextByName("MountRein") + "</textFormat>";
            (loc4 = new GScrollPane()).styleName = "GScrollPane";
            loc4.verticalScrollPolicy = ScrollPolicy.ON;
            loc4.horizontalScrollPolicy = ScrollPolicy.OFF;
            loc4.width = 358;
            loc4.height = 66;
            loc4.x = 1;
            loc4.y = 328;
            loc4.source = loc3;
            this.addChild(loc4);
            loc4.update();
            this._spRight = new Object /* flash.display.Sprite */();
            ObjCreate.createBg(0, 0, 174, 400, this._spRight);
            addChild(this._spRight);
            this._spRight.x = 363;
            ObjCreate.createBg(0, 0, 150, 24, this._spRight, ImagesConst.TileBg);
            this._stBmMountAfterRein = ObjCreate.createBitmap("", 4, 2, this._spRight);
            var loc5=ObjCreate.createBg(0, 73, 150, 2, this._spRight, ImagesConst.SplitLine);
            ObjCreate.createBg(0, 77, 150, 24, this._spRight, ImagesConst.TileBg);
            this._stBmMountBaseAtrr = ObjCreate.createBitmap("", 4, 78, this._spRight);
            var loc6=ObjCreate.createBg(0, 218, 150, 2, this._spRight, ImagesConst.SplitLine);
            ObjCreate.createBg(0, 222, 150, 24, this._spRight, ImagesConst.TileBg);
            this._stBmMountAddAtrr = ObjCreate.createBitmap("", 4, 223, this._spRight);
            var loc7=ObjCreate.createTextField(Language.getString(70189), 9, 27, 40, 20, this._spRight);
            var loc8=ObjCreate.createTextField(Language.getString(61323) + "：", 94, 27, 40, 20, this._spRight);
            var loc9=ObjCreate.createTextField(Language.getString(70191), 9, 49, 40, 20, this._spRight);
            var loc10=ObjCreate.createTextField(Language.getString(70225), 94, 49, 40, 20, this._spRight);
            this._txLevel = ObjCreate.createTextField("1", 48, 27, 25, 20, this._spRight, GlobalStyle.textFormat2);
            this._txGrade = ObjCreate.createTextField("", 134, 27, 60, 20, this._spRight, GlobalStyle.textFormat2);
            this._txSpeed = ObjCreate.createTextField("", 48, 49, 60, 20, this._spRight, GlobalStyle.textFormat2);
            this._txRein = ObjCreate.createTextField("", 134, 49, 60, 20, this._spRight, GlobalStyle.textFormat2);
            var loc11=Language.getString(70192).split(",");
            this._riseSp = new Object /* flash.display.Sprite */();
            this._riseSp.x = 106;
            this._riseSp.y = 105;
            var loc13=0;
            while (loc13 < loc11.length) 
            {
                loc15 = ObjCreate.createTextField(loc11[loc13], 9, 105 + 22 * loc13, 46, 20, this._spRight);
                loc16 = ObjCreate.createTextField("", 66, 105 + 22 * loc13, 44, 20, this._spRight, GlobalStyle.textFormat2);
                loc17 = ObjCreate.createTextField("", 130, 105 + 22 * loc13, 42, 20, this._spRight, GlobalStyle.textFormat5);
                this._arrBaseValue.push(loc16);
                this._arrBaseValueAdd.push(loc17);
                (loc12 = GlobalClass.getBitmap(ImagesConst.RangeRaise)).x = 0;
                loc12.y = 22 * loc13;
                this._riseSp.addChild(loc12);
                ++loc13;
            }
            this._riseSp.visible = false;
            this._spRight.addChild(this._riseSp);
            this._addtionalPropLabel = new Object /* flash.text.TextField */();
            this._addtionalPropLabel.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._addtionalPropLabel.filters = [FilterConst.glowFilter];
            this._addtionalPropLabel.mouseWheelEnabled = false;
            this._addtionalPropLabel.mouseEnabled = false;
            this._addtionalPropLabel.selectable = false;
            this._addtionalPropLabel.x = 9;
            this._addtionalPropLabel.y = 245;
            this._spRight.addChild(this._addtionalPropLabel);
            var loc14=0;
            while (loc14 < 8) 
            {
                this._addaddTx = new MountReinAddAdd();
                this._addaddTx.x = 116;
                this._addaddTx.y = 245 + 16 * loc14;
                this._addaddTx.clean();
                this._spRight.addChild(this._addaddTx);
                this._addaddTxArr.push(this._addaddTx);
                ++loc14;
            }
            LoaderHelp.addResCallBack(ResFileConst.mount, this.onLoadBmResource);
            return;
        }

        /* internal  */onLoadBmResource(): void
        {
            var loc1=null;
            var loc2=0;
            this._stBmMountReinBg.bitmapData = GlobalClass.getBitmapData(ImagesConst.mountReinBg);
            this._stBmMountAfterRein.bitmapData = GlobalClass.getBitmapData(ImagesConst.mountAfterReinPreview);
            this._stBmMountBaseAtrr.bitmapData = GlobalClass.getBitmapData(ImagesConst.mountBaseAtrr);
            this._stBmMountAddAtrr.bitmapData = GlobalClass.getBitmapData(ImagesConst.mountAddAtrr);
            this._loaded = true;
            if (this._mountIData) 
            {
                loc1 = "mountReinLevel_";
                loc2 = this._mountIData.itemExInfo.mount_rein + 1;
                loc1 = loc1 + loc2.toString();
                this._reinBm.bitmapData = GlobalClass.getBitmapData(loc1);
            }
            return;
        }

        protected onReinBtnClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=0;
            var loc2=false;
            if (this._mountIData) 
            {
                if (this._mountItem.itemData == null) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(70193));
                    return;
                }
                if (this._mountIData.itemExInfo.mount_rein == 2 && Cache.instance.role.entityInfo.level < 90) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(74203));
                    return;
                }
                if (this._mountIData.itemExInfo.mount_rein == 3 && Cache.instance.role.entityInfo.level < 100) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(71559));
                    return;
                }
                if (this._mountIData.itemExInfo.mount_level < GameConst.MountReincarnateLevelLimit) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(70194));
                    return;
                }
                if (this._hasAmount < this._materialNum && this._autoBuyCB.selected == false) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(70195));
                    return;
                }
                loc1 = Cache.instance.role.money.coinBind + Cache.instance.role.money.coin;
                if (loc1 < parseInt(this._costTx.text)) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(70196));
                    Dispatcher.dispatchEvent(new DataEvent(EventName.ShopMallAutoBuyCoin, parseInt(this._costTx.text) - loc1));
                    return;
                }
                if (this._mountIData.itemExInfo.mount_level >= 100) 
                {
                    Dispatcher.dispatchEvent(new DataEvent(EventName.MountGoRein, {"mountData": _mountIData, "autoBuy": this._autoBuyCB.selected, "useBind": this._useBindCB.selected}));
                }
                else 
                {
                    loc2 = !PulseSharedObject.isTodayNotTips("mountRein");
                    if (loc2) 
                    {
                        Alert.alertWinRenderer = CheckBoxWin;
                        Alert.show(Language.getString(70202), null, Alert.OK | Alert.CANCEL, null, this.onBtnClickHandlerI);
                    }
                    else 
                    {
                        Dispatcher.dispatchEvent(new DataEvent(EventName.MountGoRein, {"mountData": _mountIData, "autoBuy": this._autoBuyCB.selected, "useBind": this._useBindCB.selected}));
                    }
                }
            }
            return;
        }

        /* internal  */onBtnClickHandlerI(arg1: int, arg2: Boolean): void
        {
            if (arg1 == Alert.OK) 
            {
                Alert.resetToDefault();
                Dispatcher.dispatchEvent(new DataEvent(EventName.MountGoRein, {"mountData": _mountIData, "autoBuy": this._autoBuyCB.selected, "useBind": this._useBindCB.selected}));
            }
            if (arg2) 
            {
                PulseSharedObject.save("mountRein", true);
            }
            return;
        }

        public updateInfo(arg1: ItemData): void
        {
            var loc1=null;
            var loc2=0;
            this._mountIData = arg1;
            if (this._mountIData) 
            {
                if (MountConfig.instance.isDtModel(this._mountIData.modelId) || Cache.instance.pack.mountsPackCache.isTimeliness(this._mountIData)) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(70197));
                    this.clear();
                    return;
                }
                if (this._mountIData.itemExInfo.mount_rein >= MountConfig.instance.reinNum) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(70223));
                    this.clear();
                    return;
                }
                this._mountItem.itemData = this._mountIData;
                this._previewMountItem.itemData = this._mountIData;
                this._mountNameTx.htmlText = "<textFormat leading=\'5\'>" + ItemsUtil.getItemName(this._mountIData) + "</textFormat>";
                this._riseSp.visible = true;
                this.updateReinDrug();
                this.updateDatas();
                if (this._loaded) 
                {
                    loc1 = "mountReinLevel_";
                    loc2 = this._mountIData.itemExInfo.mount_rein + 1;
                    loc1 = loc1 + loc2.toString();
                    this._reinBm.bitmapData = GlobalClass.getBitmapData(loc1);
                }
            }
            else 
            {
                this.clear();
            }
            return;
        }

        public clear(): void
        {
            this._riseSp.visible = false;
            this._txLevel.text = "";
            this._txGrade.text = "";
            this._txSpeed.text = "";
            this._txRein.text = "";
            this._mountItem.itemData = null;
            this._previewMountItem.itemData = null;
            this._drugItem.itemData = null;
            this._mountNameTx.text = "";
            this._reinBm.bitmapData = null;
            var loc1=0;
            while (loc1 < 5) 
            {
                (this._arrBaseValue[loc1] as Object /* flash.text.TextField */).text = "";
                (this._arrBaseValueAdd[loc1] as Object /* flash.text.TextField */).text = "";
                ++loc1;
            }
            this._addtionalPropLabel.htmlText = "";
            var loc2=0;
            while (loc2 < 7) 
            {
                (this._addaddTxArr[loc2] as MountReinAddAdd).clean();
                ++loc2;
            }
            return;
        }

        /* internal  */updateDatas(): void
        {
            this._txLevel.text = "1";
            this._txGrade.text = this._mountIData.itemExInfo.m_adv_lv + "☆";
            this._txSpeed.text = "+" + (this._mountIData.itemExInfo.speed - 100).toString() + "%";
            this._txRein.text = Language.getStringByParam(70224, this._mountIData.itemExInfo.mount_rein + 1);
            var loc1=Cache.instance.pack.mountsPackCache;
            var loc2=loc1.getAllUpgradeBaseAttrValue(this._mountIData, this._mountIData.itemExInfo.m_adv_lv, true);
            var loc3=loc1.getNextReinBaseArrAdd(this._mountIData);
            var loc4=0;
            while (loc4 < loc3.length) 
            {
                (this._arrBaseValue[loc4] as Object /* flash.text.TextField */).text = loc2[loc4].toString();
                (this._arrBaseValueAdd[loc4] as Object /* flash.text.TextField */).text = loc3[loc4].toString();
                ++loc4;
            }
            var loc5=loc1.getNextReinAddtionalProps(this._mountIData);
            this._addtionalPropLabel.htmlText = loc5;
            var loc6=loc1.getNextReinAddtionalArray(this._mountIData);
            var loc7=loc1.getAddAddStr(loc6);
            var loc8=0;
            while (loc8 < 8) 
            {
                if (loc6[loc8]) 
                {
                    (this._addaddTxArr[loc8] as MountReinAddAdd).setTx(loc6[loc8], this._mountIData.itemExInfo.mount_rein);
                }
                else 
                {
                    (this._addaddTxArr[loc8] as MountReinAddAdd).clean();
                }
                ++loc8;
            }
            return;
        }

        public updateReinDrug(): void
        {
            if (this._mountNameTx.text != "") 
            {
                this.updateDrugItem();
                this.buyReinDrug();
            }
            else 
            {
                this._drugItem.itemData = null;
                this.getDrugCode();
                this.checkBackDrugNum();
                this.buyReinDrug();
            }
            return;
        }

        /* internal  */getDrugCode(): void
        {
            if (this._mountIData) 
            {
                this._configType = this._mountIData.itemExInfo.mount_rein + 1;
            }
            else 
            {
                this._configType = 100000;
            }
            this._configRein = MountConfig.instance.getRein(this._configType);
            if (this._configRein) 
            {
                this._costTx.text = this._configRein.cost.toString();
                this._costMoneyType = this._configRein.uint;
                this._materialNum = this._configRein.amount;
                this._drugCode = this._configRein.code;
            }
            else 
            {
                this._costTx.text = "0";
                this._costMoneyType = 0;
                this._materialNum = 0;
                this._drugCode = 0;
            }
            return;
        }

        /* internal  */buyReinDrug(): void
        {
            if (this.unBindDrugIData()) 
            {
                this._buyPart.itemData = this.unBindDrugIData();
                if (this._materialEnough) 
                {
                    this._buyPart.baseItem.filters = null;
                }
                else 
                {
                    this._buyPart.baseItem.filters = [FilterConst.colorFilter];
                }
                this._buyPart.needCount(this._materialNum);
                this._buyPart.hasCount(this._hasAmount);
            }
            return;
        }

        /* internal  */getMaterialItemdata(): ItemData
        {
            this.checkBackDrugNum();
            if (this._materialArr.length > 0) 
            {
                return this._materialArr[0] as ItemData;
            }
            return this.unBindDrugIData();
        }

        /* internal  */checkBackDrugNum(): void
        {
            var loc1=0;
            var loc3=null;
            var loc4=0;
            this._materialArr = [];
            this._materials = [];
            var loc2=Cache.instance.pack.backPackCache.getPropItems();
            loc1 = 0;
            while (loc1 < loc2.length) 
            {
                loc3 = loc2[loc1] as ItemData;
                if (loc3.itemInfo.item.type == EProp._EPropMountReincarnate) 
                {
                    this._materialArr.push(loc3);
                }
                ++loc1;
            }
            this._materialEnough = false;
            this._hasAmount = 0;
            if (this._materialArr.length > 0) 
            {
                loc4 = 0;
                while (loc4 < this._materialArr.length) 
                {
                    this._hasAmount = this._hasAmount + (this._materialArr[loc4] as ItemData).itemAmount;
                    ++loc4;
                }
            }
            if (this._hasAmount >= this._materialNum) 
            {
                this._materialEnough = true;
            }
            return;
        }

        /* internal  */unBindDrugIData(): ItemData
        {
            var loc2=0;
            this.getDrugCode();
            var loc1=ItemConfig.instance.getInfoByCode(this._drugCode);
            if (loc1) 
            {
                if (loc1.item.codeUnbind > 0) 
                {
                    loc2 = loc1.item.codeUnbind;
                }
                else 
                {
                    loc2 = this._drugCode;
                }
                return new ItemData(loc2);
            }
            return null;
        }

        public mountListChange(arg1: Array<any>): void
        {
            if (this._mountItem.itemData == null) 
            {
                return;
            }
            if (arg1.length == 0) 
            {
                this.clear();
                return;
            }
            var loc1=false;
            var loc2=0;
            while (loc2 < arg1.length) 
            {
                if (this._mountItem.itemData.uid == (arg1[loc2] as ItemData).uid) 
                {
                    loc1 = true;
                    break;
                }
                ++loc2;
            }
            if (!loc1) 
            {
                this.clear();
            }
            return;
        }

        /* internal */ /* var */_stBmMountReinBg: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_stBmMountAfterRein: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_stBmMountBaseAtrr: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_stBmMountAddAtrr: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_configRein: TMountReincarnate;

        /* internal */ /* var */_configType: int;

        /* internal */ /* var */_materialEnough: Boolean;

        /* internal */ /* var */_materialArr: Array<any>;

        /* internal */ /* var */_materials: Array<any>;

        /* internal */ /* var */_costTx: Object /* flash.text.TextField */;

        /* internal */ /* var */_drugCode: int;

        /* internal */ /* var */_hasAmount: int;

        /* internal */ /* var */_arrBaseValue: Array<any>;

        /* internal */ /* var */_arrBaseValueAdd: Array<any>;

        /* internal */ /* var */_addtionalPropLabel: Object /* flash.text.TextField */;

        /* internal */ /* var */_addaddTx: MountReinAddAdd;

        /* internal */ /* var */_addaddTxArr: Array<any>;

        /* internal */ /* var */_riseSp: Object /* flash.display.Sprite */;

        /* internal */ /* var */_reinBm: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_loaded: Boolean;

        /* internal */ /* var */_mountItem: BaseItem;

        /* internal */ /* var */_drugItem: BaseItem;

        /* internal */ /* var */_previewMountItem: BaseItem;

        /* internal */ /* var */_mountIData: ItemData;

        /* internal */ /* var */_reinBtn: GButton;

        /* internal */ /* var */_costMoneyType: int;

        /* internal */ /* var */_spRight: Object /* flash.display.Sprite */;

        /* internal */ /* var */_txLevel: Object /* flash.text.TextField */;

        /* internal */ /* var */_txGrade: Object /* flash.text.TextField */;

        /* internal */ /* var */_materialNum: int;

        /* internal */ /* var */_txSpeed: Object /* flash.text.TextField */;

        /* internal */ /* var */_txRein: Object /* flash.text.TextField */;

        /* internal */ /* var */_mountNameTx: Object /* flash.text.TextField */;

        /* internal */ /* var */_buyPart: MountReinBuyPart;

        /* internal */ /* var */_useBindCB: GCheckBox;

        /* internal */ /* var */_autoBuyCB: GCheckBox;
    }
